package org.binglan.youziyuepai.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.binglan.youziyuepai.entity.PhotographyTag;
import org.binglan.youziyuepai.service.PhotographyTagService;
import org.binglan.youziyuepai.utils.ResponseVoUtils;
import org.binglan.youziyuepai.vo.ResponseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: sanjin
 * @date: 2019/4/13 19:44
 */
@Api(tags = "摄影风格风格标签相关接口")
@RestController
@RequestMapping("/tag")
public class TagController {

    @Autowired
    PhotographyTagService photographyTagService;

    @ApiOperation(value = "获取学校列表",notes = "获取学校列表")
    @GetMapping("")
    public ResponseVo getAllTags() {
        List<PhotographyTag> photographyTags = photographyTagService.queryAllTags();
        return ResponseVoUtils.success(photographyTags);
    }
}
